import os
rootdir = "D:\H5Answer\static\img"

rootpath = "/static/img/"

list = os.listdir(rootdir)
fo = open("file_name.txt", "w")
for i in range(0, len(list)):
	# print(rootpath + list[i])
	fo.write("'" + rootpath + list[i] + "',\r")
fo.close()
	